package cn.lyjuan.android.demofive.ui.translate;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;

import cn.lyjuan.android.demofive.R;

/**
 * Created by chad on 25/10/2017.
 */

public class TargetActivity extends AppCompatActivity
{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ui_compat_custom_target);
    }

    @Override
    public void onBackPressed()
    {
        super.onBackPressed();
        // 如果动画未完成，完成动画
        ActivityCompat.finishAfterTransition(this);
    }
}
